Tag Info

Hot answers tagged

114

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 ...


63

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", ...


46

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=, ...


33

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 ...


27

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 ...


27

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 ...


24

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


23

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


19

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 ...


19

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 ...


17

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 ...


17

autofs can do this for you. You can configure any number of mountpoints with various options, and the corresponding filesystems are mounted whenever the mountpoint is accessed. After a given amount of inactivity the filesystems are unmounted again. There are no doubt various ways of using autofs, but here's one way of doing what you're trying to do, based ...


16

Is it possible? Yes. Is it a good idea? That depends. You would only really need to do this if the application only exists as a .deb package. It is much more likely that you can just grab the upstream source and write a simple PKGBUILD to install it with pacman. You should also search the AUR to ensure that someone hasn't done this already.


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

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 ...


15

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.


15

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 ...


15

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 ...


15

You can switch the memory unit by pressing e. E will select the memory unit in the top summary bar. Use W to permanently write your configuration to /home/user/.toprc and see also ? for more configuration options.


15

In cups v. 2.0.0 the service name has been changed (see also the install file here). You'll have to disable the old service: systemctl disable cups.service before enabling and starting the new one: systemctl enable org.cups.cupsd.service systemctl daemon-reload systemctl start org.cups.cupsd.service


14

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 ...


13

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 ...


13

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.


13

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.


13

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.


13

dpkg for Arch exists. You should be able to install .deb packages on arch, but you should also not use it instead of pacman, so just use it for selected few packages. The default command looks like: # dpkg -i package.deb


13

Besides uninstalling the appropriate drivers (which might fail to work since some devices act as usual mouse devices and only need specific drivers for more sophisticated features and your list of installed drivers suggests this) you can also disable the device via the xinput tool or by explicitly matching in xorg.conf. To disable the device using xinput, ...


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

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

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 ...



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