20
votes
5answers
31k views

How can I convert a PNG to a PDF in high quality so it's not blurry or fuzzy?

There are a lot of questions out there about how to convert a PDF file to a PNG image, but I'm looking to take a nice sharp PNG file and just basically wrap it or embed it in a PDF file without having ...
2
votes
3answers
3k views

Automatically open a remote desktop connection upon login

I have installed Linux Mint to one of my desktop PCs. I have downloaded and installed Freerdp-x11 for me to connect into my Windows Terminal Server. I want the terminal command line to connect ...
1
vote
1answer
467 views

How to install subversion 1.6.x on SLE11?

I need specific version of subversion 1.6.x on my SLE11 (SUSE Linux Enterprise Server 11 (x86_64)) but I do not know how to install it. If I follow the instructions on ...
18
votes
2answers
6k views

Are there naming conventions for variables in shell scripts?

Most languages have naming conventions for variables, the most common style I see in shell scripts is MY_VARIABLE=foo. Is this the convention or is it only for global variables? What about variables ...
3
votes
1answer
17k views

How do I access a USB serial port without an entry in /dev?

I have a USB to serial adapter based on the SiLabs CP2101 chipset. I'm trying to use it with Debian 5.0 Lenny (armel architecture). I seem to be able to get the proper kernel module to recognize the ...
2
votes
0answers
141 views

How to find where driver.mod.c links to?

I'm trying to port the webcam composite gadget from kernel 2.6.37 to 2.6.32. I don't have a choice on this since I depend on other drivers and a SDK which only compile for this version. My train of ...
18
votes
1answer
24k views

How to skip “permission denied” errors when running find in Linux? [duplicate]

Possible Duplicate: How do I remove “permission denied” printout statements from the find program? When I run this command in Linux (SuSE): find / -name ant I get many error ...
1
vote
2answers
3k views

set up a user and its root dir in vsftpd, in Ubuntu

I want to setup a www-data user for vsftpd and set its root dir to /somepath/www-data/project. How can I do this?
11
votes
4answers
1k views

What could be causing make to hang when compiling on multiple cores?

Yesterday I was trying to compile the ROOT package from source. Since I was compiling it on a 6 core monster machine, I decided to go ahead and build using multiple cores using make -j 6. The ...
6
votes
2answers
6k views

How to write init.d script log messages to disk?

I'm running Debian wheezy. Many scripts in /etc/init.d/ use various logging functions defined in the Linux Standard Base, like log_success_msg and log_warning_msg. The LSB documentation seems a bit ...
5
votes
1answer
468 views

Is there an operator like && that ignores return status?

I've discovered the following useful trick for long-running tasks on the command line: do_some_task && make_a_noise For instance, on OSX: do_some_task && say 'done' However, ...
8
votes
1answer
2k views

Does inotify fire a notification when a write is started or when it is completed?

Imagine two processes, a reader and a writer, communicating via a regular file on an ext3 fs. Reader has an inotify IN_MODIFY watch on the file. Writer writes 1000 bytes to the file, in a single ...
1
vote
1answer
404 views

How to configure ADSL connection using bash?

I know it's possible to configure the modem to automatically connect the internet using a browser, but I want to do it using bash. I would like the network to automatically connect when the system ...
8
votes
4answers
1k views

Why does my desktop lock up when I copy lots of files to a USB drive?

My desktop is usually very responsive, even under heavy load. But when I copy files to a USB drive, it always locks up after some time. By "lock up", I mean: Moving focus from one window to another ...
2
votes
2answers
8k views

Remove Linux Mint and restore windows's bootloader

I have an old laptop that is setup with dual boot, running Windows Vista and Linux Mint 12. I want to remove the Mint and reclaim the space to Windows. This is a simple task but I've been on it for ...
3
votes
1answer
409 views

How to disable timeout of password prompt for partition decryption during boot?

I have a computer running OpenSUSE 12.1, 64-bit, default install. How it works currently: I turn on the computer It goes through the boot process At some point during boot, I am asked for password ...
7
votes
2answers
1k views

Does Linux kernel 3.x use the CFS process scheduler?

Does the latest version of the Linux kernel (3.x) still use the Completely Fair Scheduler (CFS) for process scheduling which was introduced in 2.6.x ? If it doesn't, which one does it use, and how ...
8
votes
2answers
1k views

How do I append text to a write protected file [duplicate]

Possible Duplicate: Redirecting stdout to a file you don't have write permission on I am trying to append a line of text to a write protected file. I tried to accomplish this with sudo ...
5
votes
5answers
477 views

Which tasks to learn and which books to read to become more skilled at Unix/Linux internals? [closed]

I recently interviewed at a major company and did well on programming questions such as: "What is the time complexity of quicksort? What is the opposite in C of malloc? What is the opposite in ...
2
votes
2answers
153 views

need explainations on this network route

I'd like to get some insight as to how I can possibly access network devices that are on a different IP range (obviously not mine) compared to what is configured on my wifi router? setup home wifi ...
11
votes
2answers
1k views

Can git configuration be set across multiple repositories?

Git seems to support configuration values at three levels: Per-system global settings (stored in /etc/git-core) Per-user global settings (stored in ~/.gitconfig) Per-repository local settings ...
3
votes
1answer
104 views

ed: set first line as the default current line

I am trying to use ed to edit the first line of a large file, but I have to wait for ed to read all lines. Is there any way I could stop ed from reading the whole file and start editing immediately, ...
9
votes
4answers
8k views

Safely uninstall a package in Gentoo

I wanted to uninstall a specific package in Gentoo and browsed through the emerge man page. I found the --unmerge option: WARNING: This action can remove important packages! Removes all ...
3
votes
2answers
8k views

How to install/upgrade svn on SLE?

My SUSE (SUSE Linux Enterprise Server 11 (x86_64)) got installed old svn. I want to upgrade it but if I download package for Packages for SLE 11 and try to install it via zypper install ...
2
votes
1answer
2k views

Change font color and shadow from titlebar in window manager

I'm trying Linux Mint Debian Edition XFCE, and want to use a specific theme; only drawback - the font color and font shadow are unreadable, how can I change them? Also the active/inactive color window ...
4
votes
1answer
794 views

How to run this in sudo?

I have this line that I execute from php sudo -u db2inst1 -s -- "/opt/ibm/db2/current/bin/db2 connect to PLC; /opt/ibm/db2/current/bin/db2 \"update EDU.contact set MOBILE_PHONE = '123'\"" it works ...
2
votes
1answer
560 views

Can't add swap file on solaris

I'm trying to add a swap file on Solaris 10. I have already created a 2GB file swap.file. Then, I add a swap file with the command: swap -a /swap.file which shows an error: /swap.file: size is ...
2
votes
2answers
2k views

Makefile compiles unchanged files

Made an effort to get the object files in another directory, but that directory would otherwise reflect the source directory tree. Got that to work, but there is a missing piece at the $(OBJ): line ...
6
votes
2answers
2k views

Which partitions should I encrypt?

My laptop is currently running Windows and Fedora, but I'm planning to install Arch Linux as my sole OS soon. This current setup is using whole disk encryption through TrueCrypt, but I'm unsure if it ...
19
votes
5answers
7k views

Make `rm` move to trash

Is there a Linux script / application which, instead of deleting files, moves them to a special “trash” location? I’d like this as a replacement for rm (maybe even aliasing the latter; there are pros ...
7
votes
1answer
3k views

Korn Shell: End, pgup, pgdown, and delete key not working

So basically my End, Pageup/Pagedown, and Delete key are not working in ksh93. I'm running FreeBSD by the way. My arrow keys are working, and so is my home key. Those keys work when I put this in my ...
8
votes
2answers
3k views

luakit + awesome wm: make youtube fullscreen work

I'm running Arch Linux on my box. I use the awesome window manager, which is a tiling WM, but allows floating windows too. The ArchWiki's Awesome entry tells me to put the following in my awesome ...
5
votes
3answers
2k views

Reset dselect selection before package installation

I was looking through the list of packages with dselect, but pressed Return twice by mistake, thereby making it confirm and quit the [S]elect option. When I go to the [I]nstall option, it's now ...
2
votes
1answer
397 views

Why Xnest server has different glxinfo than normal Xorg server?

I've run Xnest server. It appears Xnest doesn't use my graphic card or at least it doesn't use direct rendering. Normal Xorg glxinfo OpenGL vendor string: Tungsten Graphics, Inc OpenGL renderer ...
15
votes
4answers
6k views

“openssl dgst -sha1” producing an extraneous “(stdin)= ” prefix and trailing newline

If you run this command on your Unix echo -n "foo" | openssl dgst -sha1 You will get this output: (stdin)= 0beec7b5ea3f0fdbc95d0dd47f3c5bc275da8a33 (followed by a newline). How can I force ...
3
votes
1answer
199 views

Emacs: Different users, different themes, same init file

I use emacs at work, where I usually connect to the system with two different users: myuser commonuser The former is my own personal user, whereas the latter is shared by the whole team to manage ...
4
votes
2answers
2k views

Wireless mouse freezes frequently for a second on laptop, when on battery

I have Samsung NP360E5A-A07PL laptop with ELAN Smart-Pad (ETPS/2 Elantech Touchpad, according to gpointing-device-settings), and a Logitech M195 wireless mouse (with an USB receiver). On Linux ...
6
votes
2answers
758 views

Run a script automatically as I switch to a directory [duplicate]

Possible Duplicate: Execute bash scripts on entering a directory I am running an environment which requires some very specific tool versions. The commands to set up the environment are in a ...
2
votes
1answer
1k views

Networking is not starting up?

I have a Raspberry Pi and while its plugged into the network via ethernet, my setup works and I can connect to the static IP. Today I bought a wlan adapter and after install it works great too... but ...
3
votes
1answer
342 views

How do I run my native `pacman` against a mounted image?

I have read and followed Is it possible to update, upgrade and install software before flashing an image?. I managed to mount the official Arch image, synchronise the database and update the ...
2
votes
2answers
776 views

Is it safe to just copy shared libraries onto embedded Linux device?

The following is contained in the vendor user manual for its embedded Linux distro on the hardward board they supply Developers can put their program onto X-Linux device via FTP or NFS. Before ...
2
votes
2answers
3k views

SFTP and sudo using Windows client?

I want to download files from a linux system using a windows client. While there are many SFTP clients I am having the problem, that I need to access files where I need to be root. On the linux system ...
29
votes
2answers
12k views

What does “3>&1 1>&2 2>&3” do in a script?

I saw this line in a script: DEVICE=`dialog --inputbox "Festplatten-Laufzeit auslesen. Gebe Sie das gewünschte Device an: " 0 70 "" 3>&1 1>&2 2>&3` What is 3>&1 ...
1
vote
0answers
59 views

X11 session environment

I want to run specific command in X11 session automatically, as soon as I take the session. e.g. If I do Xephyr :2 -once -query <ip_address> then post successful authentication, a command ...
2
votes
0answers
321 views

linum auto-activation in .emacs fails

I added the following lines to my .emacs.d/init.el to auto-activate linum at startup: (require 'linum) (global-linum-mode 1) (setq linum-format “%d “) But no way, i still have to manually M-x ...
2
votes
1answer
5k views

How can I install my webcam on Debian?

I'm trying to install the webcam driver for my Logitech C210. After some googling Linux UVC driver seems to be what I need. I followed their typical use in hope to get it installed: git clone ...
2
votes
1answer
645 views

lsmod returns nothing on my embedded device

I have put a vendor supplied embedded Linux installation (called X-Linux) onto a hardware device. I ran lsmod to see what modules are loaded and nothing at all is shown. Also there is no /proc/modules ...
13
votes
1answer
12k views

how can I make cron run a job right now, for testing/debugging? without changing the schedule!

I have a cron job that is scheduled to run everyday, other than changing the schedule, is there any other way to do a test run of the command right now to see if it works as intended?
10
votes
1answer
2k views

Open html attachments externally in mutt

I recently managed to set up the my mailcap so that mutt can show html e-mails in the message window: # ~/.mailcap text/html; lynx -dump '%s' | more; nametemplate=%s.html; copiousoutput; which is ...
2
votes
3answers
2k views

Change Folder Permissions

I started off with changing to the folder I want to change permissions for, and that is the opt folder. $ cd /opt/ test@testVM:/opt$ So I tried changing the permissions for this folder now using: ...

15 30 50 per page