Reputation
15,757
Top tag
Next privilege 20,000 Rep.
Access 'trusted user' tools
Badges
17 47
Newest
 Nice Answer
Impact
~1.1m people reached

Dec
4
comment Run bash script from curl failed while from file succeeded
You might know that you are trustworthy but nobody else knows you from a bar of soap. By telling your users to run your script as root, you're telling them "trust me. give me unrestricted root access to your system". official debian repos are curated, and monitored and with a bug tracking system. your web site with your script is just a random web site, one amongst billions. If you seriously think what you are telling your users to do is in any way acceptable practice then you are simply not qualified to talk about security. you have decided that minor convenience is far more important.
Dec
4
comment How to create a disk image with a partition table that can be easily resized to the target device?
i thought you wanted to know how to set things up so that resizing would be easy. Anyway, you can use gparted as a graphical tool to resize partitions (it will also automatically resize the fs too), or you can use parted on he command-line, using parted's resizepart command. if you've set things up as i described above, you can just extend the rootfs to the end of the disk. You'll need to run resize2fs to resize the fs after the partition has been resized.
Dec
4
comment Make a shell script execute commands in telnet or programs
your most portable option is to use expect itself. it's an old, common tool installed on many systems already. the perl / python options not only require their interpreters to be installed (which is not uncommon) but also the relevant libraries (which is not so common)....they are much easier to work with and more flexible than expectitself, though.
Dec
4
comment Make a shell script execute commands in telnet or programs
you haven't provided anywhere near enough details to write any kind of script. it's not needed, though - there are many examples of expect etc scripts on this site (and on stack overflow and serverfault). Start with some of the links under the heading Related to the right. and also search the SE sites for expect and/or the perl and python libraries i mentioned.
Dec
4
comment Make a shell script execute commands in telnet or programs
Then it's too bad that sh (in any of its variations) isn't really up to the task. there's too many things that can go wrong (or are just unexpected) that a simple redirection sh script can't cope with. There's a reason why tools like expect and the others i mentioned exist - and that's because shell scripts aren't capable of doing the job reliably.
Dec
4
comment Run bash script from curl failed while from file succeeded
You are doing your users no favours at all by teaching them that security is irrelevant, or by treating them as idiots who can't follow simple instructions. Have some respect for your users, and assume they're at least moderately intelligent and capable. At the very least, warn them that by running your script without examining it, they are giving YOU complete root access to their system.
Dec
4
comment Make a shell script execute commands in telnet or programs
use expect or write a perl script that uses Expect.pm (or one of the perl Net::* modules like Net::Telnet or Net:SSH etc) or a python script that uses pexpect.
Dec
4
comment How to add the correct repositary in gedit?
don't post screenshots. they're unreadable. cat the text files and copy-paste the text. that's readable on any screen, at the viewer's preferred font size.
Dec
4
comment Run bash script from curl failed while from file succeeded
or are you writing this to go with some install instructions on your website? if so, please don't do that. there's already way too many people telling ignorant users to do that - and they really don't need to be taught that fetching random scripts from random web sites and running them without examination as root is an acceptable thing to do, Give them the instructions, tell them what to do. If you want to give them a script to automate the process, tell them to download it as a separate step and EXAMINE IT (and perhaps modify it to suit their system) before running it,
Dec
4
comment Run bash script from curl failed while from file succeeded
Then why go out of your way to make the process so complicated? why fetch it with curl and pipe it into bash when you can just run the script? the only time i've seen people do things like that is when they're writing a for h in $hosts ; do ... ; done wrapper around ssh, and pdsh is a much better tool for that job. if it doesn't need to be complicated, then keep it simple.
Dec
4
answered Copying my Ubuntu vmware workstation virtual machine (desktop) to my laptop as a physical machine - How to get it boot
Dec
4
comment Transfer session between computers
you could ssh back in to your previous workstation and re-connect to your screen or tmux session. you will be sharing CPU & RAM and other resources with the new user at that workstation, though. and this is only good for shells and text mode apps, including ncurses apps.
Dec
4
answered How to create a disk image with a partition table that can be easily resized to the target device?
Dec
3
comment How to distinguish ZFS pool from mounts?
yep, should be ok unless it has a quota set.
Dec
3
comment Invalid command code with sed
damn comment quoting. i meant escape with `\`. doesn't seem any way to get \ to be highlighted.
Dec
3
comment Run bash script from curl failed while from file succeeded
presumably you are doing this because you want to install jq on multiple hosts, perhaps on a cluster. If so, look into installing pdsh (available packaged for debian etc), so you can then run commands like pdsh -g all apt-get -y install jq. or pdcp -g all myscript.sh /tmp ; pdsh -g all bash /tmp/myscript.sh. See computing.llnl.gov/linux/pdsh.html
Dec
3
comment Invalid command code with sed
personally, i'd use = as delimiter here because a) my first choice : is in the input text, and b) you don't have to escape = with ` as you're doing for |.
Dec
3
comment How to distinguish ZFS pool from mounts?
one complication would be that each of those zfs filesystems may have different quotas or reservations - so zero-filling just one of the filesystems with a quota smaller than the total zpool won't zero-fill the entire disk. check with zfs get quota -t filesystem
Dec
3
comment Install Debian kernel header files 3.4.90+ via terminal for ARMHF
is your device an odroid xu? that's the only device on www.armhf.com that has even close to a 3.4.90 kernel (all the others have 3.10.17 or 3.14.4.1).....and for the odroid xu they have linux image and headers for 3.4.91.1 - if your device is an adroid, try upgrading to that and installing the headers at the same time. armhf.com/boards/odroid-xu/#wheezy
Dec
3
comment Install Debian kernel header files 3.4.90+ via terminal for ARMHF
BTW, is there any particular reason why you downloaded and installed a kernel from www.armhf.com? Can you revert back to the stock debian kernel? If you could then you could install the matching linux-headers-* package as in my answer.