vlad

Members
  • Content Count

    27
  • Joined

  • Last visited

Reputation Activity

  1. Like
    vlad got a reaction from help40 in new motd for ubuntu/debian   
    just delete everything in /etc/update-motd.d
  2. Like
    vlad got a reaction from Baos in armbian ssh login motd   
    ok so on a quick search looks like there are some discrepancies on what the pam_motd is supposed to do and what it actually does 
    https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=743286
    https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/1169558
    http://unix.stackexchange.com/questions/246436/how-to-set-a-dynamic-message-of-the-day-motd-in-debian-jessie-8-2-for-ssh
     
    anyway this is how i fixed the problem on my armbian 
     
    first edit the /etc/pam.d/login and /etc/pam.d/sshd and comment this line (in both files) 
    session    optional   pam_motd.so  motd=/run/motd.dynamic noupdate and create a link from /run/motd.dynamic to /etc/motd/
    ln -s /run/motd.dynamic /etc/motd reopen your session and the motd should be updated every time on login
  3. Like
    vlad got a reaction from wildcat_paris in alternative p2p download   
    I guess everyone knows that downloading distros in general takes a lot of bandwidth, same with armbian even thought the armbian distro i only a couple of hundreds of MB.
     
    so beside offering direct download why not start using p2p downloads like ubuntu and other distros do already in order to save bandwidth. We can use the openbittorrent.com public tracker - i already have a cubietruck which is powered 24/7 for my p2p needs so i would mind sharing some armbian distros via p2p.
     
    What do you guys think ? 
  4. Like
    vlad got a reaction from wildcat_paris in Upgrade Error with Armbian 5.00 on Cubieboard2 running from NAND   
    get something based on ftdi devices they are know to work across all platform windows/linux/osx but make sure you get a genuine device since ftdi are again abusing, at least on windows operating systems, that updates system and bricks non genuine ftdi chips
     
    ebay has hundreds of listings for ft232 starting at around $2.2 only problem it could take a while to arrive. Based on where you live check out sparkfun or adafruit or pololu - they are US based and they will sell you a genuine part but it will cost like 5-6x or more than the ebay listings if you are EU based check olimex or exp-tech.de 
  5. Like
    vlad got a reaction from Tido in Creating a backup SD card (* .img) to another media or network   
    i started working sometime ago on a backup script for my armbian, it is not complete and it was built for my case but it give a starting point for anyone interested in making a backup.
     
    some decisions i took before writing it:
    decided to go with rsync + archive and not rsync + image, going with archive instead of image makes restoring the backup a bit harder but it doesn't stop you from using a different format for your partition or a different sd card size same . archives are uploaded to a ftp server, i chose ftp and not ssh because the ftp service is provided by my ISP so super fast speeds and it cost almost nothing. i have the rootfs on a mechanical hdd and the uboot/kernel on sdcard so i am making two archives boot and rootfs (but i could be easily changed to backup the whole thing)  the backup its suppose to run every midnight in a crontab so it doesn't output anything directly but its logged in a file, which i am planing to email after a successful backup. backup.zip
     
    After the backup in order to have a bootable sd card you need to write the u-boot to the sd card your using some information are provided here http://forum.armbian.com/index.php/topic/594-move-armbian-from-one-sd-to-another/- that i am hoping to fix in the future with a restore script.
  6. Like
    vlad got a reaction from Tido in new motd for ubuntu/debian   
    Ok so first a big thanks to Igor for the work he has put into armbian, started using this build when it was still posted on Igor's site
     
    anyway i wanted more information out of the motd and here is what i came up with this is running on my cubietruck with the latest kernel 
    _ ___| |_ ___ _ __ __ _ __ _ ___ / __| __/ _ \| '__/ _` |/ _` |/ _ \ \__ \ || (_) | | | (_| | (_| | __/ |___/\__\___/|_| \__,_|\__, |\___| |___/ Welcome to Ubuntu 14.04.3 LTS (4.3.3-sunxi). System information as of: Mon Jan 11 21:34:35 EET 2016 System load: 0.14 Memory usage: 97.5% Local users: 0 Swap usage: 0.0% IP address: 888.888.88.8 Uptime: up 6 days, 19 hours, 50 minutes Usage of root/: 8% of 16G HDD temp: 43°C Usage of storage/: 26% of 443G Board temp: 47°C 0 updates to install. 0 are security updates. Last login: Mon Jan 11 07:50:37 2016 from 888.888.88.888 root@storage:~# this should work with both debian and ubuntu versions but has some hard coded values at least for the sensor temp in the cubietruck 
     
    upload everything from the archive to the /etc/ folder, make the files inside executable (chmod +x) - the files are taken from https://nickcharlton.net/posts/debian-ubuntu-dynamic-motd.htmlbut 10-sysinfo was updated with more information
     
    finally disable default motd by editing the bash.bashrc files (remove/delete) this lines
    if [ -f /etc/bash.bashrc.custom ]; then . /etc/bash.bashrc.custom fi   after this with every new login you should see the new motd
     
    update-motd.d.zip
  7. Like
    vlad got a reaction from wildcat_paris in new motd for ubuntu/debian   
    ok so regarding the memory usage the output of free its a bit misleading (i was before i googled it) if your not familiar with how linux treats ram memory - http://www.linuxatemyram.com/will explain better than i could  
     
    ok so here is the updated 10-sysinfo
    _ ___| |_ ___ _ __ __ _ __ _ ___ / __| __/ _ \| '__/ _` |/ _` |/ _ \ \__ \ || (_) | | | (_| | (_| | __/ |___/\__\___/|_| \__,_|\__, |\___| |___/ Welcome to Ubuntu 14.04.3 LTS (4.3.3-sunxi). System information as of: Tue Jan 12 22:31:17 EET 2016 System load: 0.37 Memory usage: 7.0% Local users: 1 Swap usage: 0.0% IP address: 192.168.88.4 Uptime: up 1 week, 20 hours, 46 minutes Usage of root/: 7% of 16G HDD temp: 43°C Usage of storage/: 26% of 443G Board temp: 49°C 0 updates to install. 0 are security updates. Last login: Tue Jan 12 22:30:41 2016 from 192.168.88.100 root@storage:~# 10-sysinfo.zip
  8. Like
    vlad got a reaction from Igor in new motd for ubuntu/debian   
    Ok so first a big thanks to Igor for the work he has put into armbian, started using this build when it was still posted on Igor's site
     
    anyway i wanted more information out of the motd and here is what i came up with this is running on my cubietruck with the latest kernel 
    _ ___| |_ ___ _ __ __ _ __ _ ___ / __| __/ _ \| '__/ _` |/ _` |/ _ \ \__ \ || (_) | | | (_| | (_| | __/ |___/\__\___/|_| \__,_|\__, |\___| |___/ Welcome to Ubuntu 14.04.3 LTS (4.3.3-sunxi). System information as of: Mon Jan 11 21:34:35 EET 2016 System load: 0.14 Memory usage: 97.5% Local users: 0 Swap usage: 0.0% IP address: 888.888.88.8 Uptime: up 6 days, 19 hours, 50 minutes Usage of root/: 8% of 16G HDD temp: 43°C Usage of storage/: 26% of 443G Board temp: 47°C 0 updates to install. 0 are security updates. Last login: Mon Jan 11 07:50:37 2016 from 888.888.88.888 root@storage:~# this should work with both debian and ubuntu versions but has some hard coded values at least for the sensor temp in the cubietruck 
     
    upload everything from the archive to the /etc/ folder, make the files inside executable (chmod +x) - the files are taken from https://nickcharlton.net/posts/debian-ubuntu-dynamic-motd.htmlbut 10-sysinfo was updated with more information
     
    finally disable default motd by editing the bash.bashrc files (remove/delete) this lines
    if [ -f /etc/bash.bashrc.custom ]; then . /etc/bash.bashrc.custom fi   after this with every new login you should see the new motd
     
    update-motd.d.zip
  9. Like
    vlad got a reaction from wildcat_paris in new motd for ubuntu/debian   
    Ok so first a big thanks to Igor for the work he has put into armbian, started using this build when it was still posted on Igor's site
     
    anyway i wanted more information out of the motd and here is what i came up with this is running on my cubietruck with the latest kernel 
    _ ___| |_ ___ _ __ __ _ __ _ ___ / __| __/ _ \| '__/ _` |/ _` |/ _ \ \__ \ || (_) | | | (_| | (_| | __/ |___/\__\___/|_| \__,_|\__, |\___| |___/ Welcome to Ubuntu 14.04.3 LTS (4.3.3-sunxi). System information as of: Mon Jan 11 21:34:35 EET 2016 System load: 0.14 Memory usage: 97.5% Local users: 0 Swap usage: 0.0% IP address: 888.888.88.8 Uptime: up 6 days, 19 hours, 50 minutes Usage of root/: 8% of 16G HDD temp: 43°C Usage of storage/: 26% of 443G Board temp: 47°C 0 updates to install. 0 are security updates. Last login: Mon Jan 11 07:50:37 2016 from 888.888.88.888 root@storage:~# this should work with both debian and ubuntu versions but has some hard coded values at least for the sensor temp in the cubietruck 
     
    upload everything from the archive to the /etc/ folder, make the files inside executable (chmod +x) - the files are taken from https://nickcharlton.net/posts/debian-ubuntu-dynamic-motd.htmlbut 10-sysinfo was updated with more information
     
    finally disable default motd by editing the bash.bashrc files (remove/delete) this lines
    if [ -f /etc/bash.bashrc.custom ]; then . /etc/bash.bashrc.custom fi   after this with every new login you should see the new motd
     
    update-motd.d.zip