sudo apt-get install ntfs-3g
sudo mkdir /media/usbdrive
sudo mount -t ntfs-3g -o uid=pi,gid=pi /dev/sdb1 /media/usbdrive/
extra in /etc/fstab
/dev/sdb1 /media/usbdrive ntfs-3g uid=pi,gid=pi 0 0
|
Personally I’ve always appreciated the emphasis on Populi versus Dei especially considering tumultuous, fractious and socialist history of Europe. But what it expresses best is the materialistic notion that perfection, i.e. God, is possible from the voice of the people and that truth resides in each and everyone of us. So this is my food for thoughts blog article about software technology. If you found article on this blog useful, click on any ad so that I can have a drink on you.
1
2
3
|
root@pi:~# git clone https://github.com/thomasyounsi/sample.git -v
Cloning into 'sample'...
fatal: unable to access 'https://github.com/thomasyounsi/sample.git/': Problem with the SSL CA cert (path? access rights?)
|
1
2
3
4
5
6
7
8
9
|
root@pi:~# git config --global http.sslVerify false
root@pi:~# git clone https://github.com/thomasyounsi/sample.git -v
Cloning into 'sample'...
POST git-upload-pack (190 bytes)
remote: Counting objects: 31, done.
remote: Compressing objects: 100% (23/23), done.
remote: Total 31 (delta 15), reused 18 (delta 7)
Unpacking objects: 100% (31/31), done.
root@pi:~#
|
1
2
3
4
5
6
7
8
9
|
root@pi:~/sample# git push https://user@github.com/thomasyounsi/sample.git
Password for 'https://user@github.com':
Counting objects: 5, done.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 308 bytes | 0 bytes/s, done.
Total 3 (delta 2), reused 0 (delta 0)
To https://user@github.com/thomasyounsi/sample.git
6d24b8a..89bcc1c master -> master
root@pi:~/sample#
|
1
|
root@pi:~# git config --global http.sslVerify true
|
1
|
root@pi:~#opkg install ca-certificates
|
1
2
3
4
|
root@pi:~# cd ~/
root@pi:~# ls .git* -l
-rw-r--r-- 1 root root 82 Jun 5 11:58 .gitconfig
root@pi:~# vi .gitconfig
|
1
2
3
4
5
6
|
[http]
sslVerify = true
sslCAinfo = /etc/ssl/certs/ca-certificates.crt
[user]
email = user@myemaildomain.com
name = thomasyounsi
|
1
2
3
4
5
6
7
|
root@pi:~# git clone https://github.com/thomasyounsi/sample.git
Cloning into 'sample'...
remote: Counting objects: 34, done.
remote: Compressing objects: 100% (25/25), done.
remote: Total 34 (delta 17), reused 21 (delta 8)
Unpacking objects: 100% (34/34), done.
root@pi:~#
|
1
2
3
4
5
6
7
8
9
10
|
root@pi:~/sample# git push
Username for 'https://github.com': thomasyounsi
Password for 'https://thomasyounsi@github.com':
Counting objects: 5, done.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 301 bytes | 0 bytes/s, done.
Total 3 (delta 2), reused 0 (delta 0)
To https://github.com/thomasyounsi/sample.git
89bcc1c..7d1a5c6 master -> master
root@pi:~/sample#
|
1
2
3
4
5 |
root@pi:~/temp# curl https://raw.github.com/thomasyounsi/sample/master/sample.cpp > test.cpp
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (77) Problem with the SSL CA cert (path? access rights?) |
1
2
3
4
|
root@pi:~/temp# curl -k https://raw.github.com/thomasyounsi/sample/master/sample.cpp > test.cpp
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 991 100 991 0 0 2921 0 --:--:-- --:--:-- --:--:-- 3753
|
1
2
3
4
5
6
7
|
cp /usr/bin/curl /usr/bin/curl.bin
cd /usr/bin/
sudo vi curl
#!/bin/sh
/usr/bin/curl.bin –k $1 $2 $3 $4 $5 $6 $7 $8 $9 $10 $11
:w!
chmod +x /usr/bin/curl
|
1
2
3
4
|
root@pi:~/temp# curl --cacert /etc/ssl/certs/ca-certificates.crt https://raw.github.com/thomasyounsi/sample/master/sample.cpp > test.cpp
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 991 100 991 0 0 720 0 0:00:01 0:00:01 --:--:-- 769
|
1
2
3
4
5
6
7
8
9
10
|
root@pi:~/temp# export CURL_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt
root@pi:~/temp# echo $CURL_CA_BUNDLE
/etc/ssl/certs/ca-certificates.crt
root@pi:~/temp# cat $CURL_CA_BUNDLE
-----BEGIN CERTIFICATE-----
MIIHWTCCBUGgAwIBAgIDCkGKMA0GCSqGSIb3DQEBCwUAMHkxEDAOBgNVBAoTB1Jv
...
d+pLncdBu8fA46A/5H2kjXPmEkvfoXNzczqA6NXLji/L6hOn1kGLrPo8idck9U60
4GGSt/M3mMS+lqO3ig==
-----END CERTIFICATE-----
|
1
2
3
4
|
root@pi:~/temp# curl https://raw.github.com/thomasyounsi/sample/master/sample.cpp > test1.cpp
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 991 100 991 0 0 728 0 0:00:01 0:00:01 --:--:-- 774
|
1
2
3
4
5
|
root@pi:~# ps -p $$
PID TTY TIME CMD
620 pts/0 00:00:00 sh
root@pi:~# echo $SHELL
/bin/sh
|
1
|
export CURL_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt
|
1
2
3
4
|
root@pi:~# reboot
...
root@pi:~# echo $CURL_CA_BUNDLE
/etc/ssl/certs/ca-certificates.crt
|