Tag Info

Hot answers tagged

91

Assuming you can get everything working, and you don't want to do resource intensive tasks such as playing games or doing large compiles, then I think you'll be fine. There's some basic issues you will probably encounter: guest time incorrect guest screen size or color depth incorrect can't access USB devices (printers, phones, etc.) To fix this, you ...


49

I teach a hands-on class on Linux, and unfortunately, by company policy I'm not allowed to reformat the class-provided laptops, so we're going by the VirtualBox guest approach. Ignoring all performance concerns, here are some notes / problems I noticed: 1) Bridged mode and Wireless Some wireless cards apparently have difficulty having "dual identities", ...


31

Take a look on Linux From Scratch, LFS they have a tutorial which teaches you how to build your own Linux System, once you understood that you can select a package manager and a set of packages hence creating your own distro. A thing to make the answer a bit more complete, ArchLinux is a Linux Distribuition which uses almost 100% vanilla packages. This ...


26

Edit /etc/systemd/logind.conf and make sure you have, HandleLidSwitch=ignore which will make it ignore the lid being closed. (You may need to also undo the other changes you've made). Full details over at the archlinux Wiki. The man page for logind.conf also has the relevant information, HandlePowerKey=, HandleSuspendKey=, HandleHibernateKey=, ...


25

Many programs make use of this technique where there is a single executable that changes its behavior based on how it was executed. There's typically a structure inside the program called a case/switch statement that determines the name the executable was called with and then will call the appropriate functionality for that executable name. That name is ...


21

You should be able to reinstall the package with a simple: # pacman -S perl-libwww This will only remove perl-libwww: # pacman -Rdd perl-libwww Please notice the double -d in the command, if you use --nodeps you have to specify that twice too or combine it with a -d like: # pacman -R --nodeps --nodeps perl-libwww # pacman -Rd --nodeps perl-libwww ...


20

The Yocto Project is a "distribution builder". There is extensive documentation and a graphical builder, called Hob.


17

From the Pacman Rosetta, since you're looking for the equivalent to apt-file: pkgfile filename pkgfile used to be in the pkgtools package. In recent versions, it's in its own package. To install: pacman -S pkgfile


17

Don't forget that a VM is an emulation. Your Unix system will never be as powerful in a VM than installed. Archlinux is made to fit your tastes, it is a distribution you can customize to it's maximum. I used to make it run on a VM, though I thought about installing it definitely on my computer. Now my system boots in about 15 seconds, my builds are a looooot ...


16

Is this not how to set up a swap file? I think you missed a step in between chmod and swapon: mkswap /mnt/sda2/swapfile As for the oxymoromic error... swapon: /mnt/sda2/swapfile: read swap header failed: Success What this literally means is there's a bug in the swapon code, but not necessarily one related to its primary functioning. C library ...


15

Binaries have been moved to /usr/bin. You need to approach the upgrade in two phases, as per the news article. First remove or update any packages from non-official repos, then update your system in three distinct steps: pacman -Syu --ignore filesystem,bash pacman -S bash pacman -Su If you encounter any difficulties, there is a long thread on the Arch ...


13

There are three ways you could set up the two OSs: Windows host, Linux VM (as you have it). Linux host, Windows VM. Dual boot. If you want to run Windows games I would not recommend option 2. If you regularly want to use a Windows only program (that doesn't run well under Wine) during your Linux session then option 3 won't work well for you. If you use ...


12

IP Network Troubleshooting There are a few standard things you can look for when you are experiencing network connectivity issues. These are listed here from a top-down, or least fundamental to most fundamental issues. All the example ip commands shown here use a Linux-specific tool called iproute2. Many of the tasks can likely be done with ifconfig and ...


12

The package you are looking for is called wpa_supplicant, it handles logging into protected wireless networks. If you use it from Ubuntu (or other debian based distributions) it's fairly easy to set up and the process is rather simple (check the debian wiki for a few pointers). I don't know much about arch linux but it shouldn't differ too much. If you ...


12

Here are some points you could start with: Have a look at the packages installed on your system with pacman -Q and remove the ones you don't need. A good start may be to append the -t switch: Restrict or filter output to packages not required by any currently installed package. Clean the package cache of pacman with pacman -Sc Always use pacman ...


12

Firstly, try running pacman -Syy, then try to install sudo again. Check that the repositories are uncommented in /etc/pacman.conf. Or your mirrorlist might be outdated: Generate a current list of mirrors and copy it to /etc/pacman.d/mirrorlist Quoting from this relevant forum thread: You can: pick another mirror try using an http mirror, not ...


12

From man pacman: --noconfirm Bypass any and all “Are you sure?” messages. It’s not a good idea to do this unless you want to run pacman from a script. Note the qualification about using this with care... Arch is a rolling release, which means pacman has to, from time to time, manage some quite complex upgrades. At these times pacman will prompt ...


11

You can use perl-file-mimeinfo in the extra repository to manage mimetypes. Example to open all .pdf files in apvlv: /usr/bin/vendor_perl/mimeopen -d $file.pdf and then, at the prompt, enter the application: apvlv.


11

What graphical environment are you using in Linux? Most of the modern desktop environments (GNOME, KDE, Unity) are moving towards requiring hardware 3D acceleration support to work properly. Hardware acceleration support for graphics inside VMs is a relatively immature technology at the moment. VirtualBox has experimental support.


11

The semicolon at the end needs to be quoted or escaped so that it is passed to find instead of being interpreted by the shell. find . -name ic_launcher.png -exec mv '{}' other_name.png ';' or find . -name ic_launcher.png -exec mv '{}' other_name.png \; should do what you're trying to do.


9

What this error actually says, is that the version of package-query that's installed depends on a lower version of pacman than the one you're trying to upgrade to. This can be solved by running pacman -Rs yaourt; pacman -Syu; and then rebuilding yaourt and package-query.


9

The -dev packages usually contain header-files, examples, documentation and such, which are not needed to just running the program (or use a library as a dependency). They are left out to save space. ArchLinux usually just ships these files with the package itself. This costs a bit more disk space for the installation but reduces the number packages you ...


9

If you use this box mainly via SSH, there's a good chance that you're in the butter zone where it really doesn't matter much whether it's a VM or on real hardware. Many of the problems mentioned in other answers come up when you're trying to use the guest OS as a GUI desktop. Linux servers are very happy inside VMs; a huge chunk of the web hosting market is ...


9

AIF, the Arch Installer Framework, has been removed from the new ISOs. There will be a formal announcement in the next couple of days. For the moment, you can read the details on the mailing list. You can now use the Arch Install Scripts as described on the wiki. There is also this thread on the Arch boards which has some more detail about the reasons ...


9

You should read the Arch Wiki page on sudo. sudo ("substitute user do") allows a system administrator to delegate authority to give certain users (or groups of users) the ability to run some (or all) commands as root or another user while providing an audit trail of the commands and their arguments. You can install sudo from the repositories and then ...


9

There is no real need to disable "extra" TTYs as under systemd gettys are generated on demand: see man systemd-getty-generator for details. Note that, by default, this automatic spawning is done for the VTs up to VT6 only (to mimic traditonal Linux systems). As Lennart says in a blog post1: In order to make things more efficient login prompts are now ...


8

I found the answer on Arch Linux Forums Since pacman 3.4 you can use # pacman -D to modify only the database. So: # pacman -D --asexplicit <pkgs> will make <pkgs> explicitly installed.


8

Regarding the freeze, there are a few options: using a serial port if your box has one to get the dump there by adding console=ttyS0 to the boot options, as described here. You need a second machine with a serial port and a null modem cable to catch the dump file. using netconsole to get the dump over the network, see here. Using kexec/kdump this way you ...


8

Write a second script that does the actual calculation and saves the result to a file: # calculate $curval echo $curval > /var/foo/value.txt Schedule it with cron to run every 2-3 hours. In the "every 10 minutes" script, simply read the current value from the file: curval=`cat /var/foo/value.txt` A nice refinement is to call the calculation script ...


8

Note: These are generalized instructions. Some comments below indicate that your specific distro may or may not have problems with you doing this. That is why the backup in step 4 is recommended. Format SSD. What file system to use on SSD is another question. Boot from a rescue CD and mount up both HD and SSD. rsync -avP /usr from HD to SSD. Move /usr to ...



Only top voted, non community-wiki answers of a minimum length are eligible